#FROM registry.cn-hangzhou.aliyuncs.com/mserver/imapp:5.3
# 使用官方的CentOS 7基础镜像
FROM  registry.cn-hangzhou.aliyuncs.com/mserver/mserver:psi-2024-04-29-13-22-28

#FROM centos:centos7
#
## 定义要安装的Java版本
#ENV JAVA_VERSION 8u202
#
## 安装Java
#RUN yum update -y && \
#    yum install -y java-1.8.0-openjdk && \
#    yum clean all && \
#    yum -y install telnet && \
#    yum -y install openssh-clients && \
#    yum -y install iproute && \
#    java -version
#

RUN mkdir /data/zwt/apps -p
RUN rm -rf /data/zwt/apps/*
ADD sg-user-service-0.24.jar /data/zwt/apps/
CMD ["java","-Dfile.encoding=utf-8", "-Duser.timezone=GMT+08", "-Djava.net.preferIPv4Stack=true","-Djava.security.egd=file:/dev/./urandom","-jar","/data/zwt/apps/sg-user-service-0.24.jar"]
